<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Goods extends Model
{
    protected $table='goods';
    protected $guarded = [];
    public function goodsNexus(){
        return $this->hasMany('App\Models\GoodsNexus', 'goods_id');
    }
    public function goodsClass(){
        return $this->belongsTo('App\Models\GoodsClass','class_id');
    }
    
}